package com.msa.msaportal.service.impl;

import java.util.List;

import com.msa.msaportal.dao.IPortalCssEntityDao;
import com.msa.msaportal.entity.PortalCssEntity;
import com.msa.msaportal.entity.PortalExample;
import com.msa.msaportal.entity.Template;
import com.msa.msaportal.service.IPortalCssEntityService;
import com.msa.msaportal.service.IPortalExampleService;

public class PortalCssEntityServiceImpl implements IPortalCssEntityService{

	
	private IPortalCssEntityDao portalCssDao;

	public IPortalCssEntityDao getPortalCssDao() {
		return portalCssDao;
	}
	
	public void setPortalCssDao(IPortalCssEntityDao portalCssDao) {
		this.portalCssDao = portalCssDao;
	}
	public List<PortalCssEntity> getcssEntityListByorgId(String orgId) {

		return portalCssDao.getcssEntityListByorgId(orgId);
	}

	@Override
	public PortalCssEntity findById(Integer cssId) {
		
		return portalCssDao.findById(cssId);
	}
	@Override
	public void save(PortalCssEntity c) {
		// TODO Auto-generated method stub
		portalCssDao.addCss(c);
	}

	@Override
	public void delete(String csource_id) {
		// TODO Auto-generated method stub
		portalCssDao.delCss(csource_id);
	}

	@Override
	public PortalCssEntity findByCresourse_Id(String templateOrStyleId) {
		// TODO Auto-generated method stub
		PortalCssEntity portalCssEntity=portalCssDao.findByCsourse_Id(templateOrStyleId);
		return portalCssEntity;
	}

	@Override
	public void updateEntity(PortalCssEntity cssentity) {
		
		portalCssDao.updateCssEntity(cssentity);
	}



}
